all:  SAMPLE02 TS000002 SUITE002
	
SAMPLE02:$(SAMPLE2_PGM)/SAMPLE02.cbl
	cobc -m -o libSample2 $(SAMPLE2_PGM)/SAMPLE02.cbl  -I $(SAMPLE1_COPY_PATH) -L $(SAMPLE1_LIB_PATH) -l Sample1
	mv libSample2.so lib/

TS000002: $(SAMPLE2_PGM)/TS000002.cbl
	cobc -m -I $(CBU_COPY_PATH) -I $(SAMPLE2_COPY_PATH) -L $(SAMPLE2_LIB_PATH) -l Sample2 -o libTS2 $(SAMPLE2_PGM)/TS000002.cbl 
	mv libTS2.so tests/lib/


SUITE002: $(SAMPLE2_PGM)/SUITE002.cbl 
	cobc -x -I $(CBU_COPY_PATH) $(SAMPLE2_PGM)/SUITE002.cbl  -L $(SAMPLE1_TEST_LIB_PATH) -L $(SAMPLE2_TEST_LIB_PATH) -l TS2 -L $(CBU_LIB_PATH) -l COBOLUnit
	mv ./SUITE002 tests/

clean:
	rm -rf *.so
	rm -rf lib/
	rm -rf tests/	
	mkdir lib/
	mkdir tests/
	mkdir tests/lib/


